package com.bookmall.dao;

import java.sql.SQLException;
import java.util.List;

import com.bookmall.entity.Order;

public interface OrderDao extends BaseDao<Order>{
	//批量查询
	List<Order> selectByIds(List<Integer> ids,int page,int pageSize) throws SQLException;
	//根据订单号查询
	List<Order> selectByNo(List<Integer> nos,int page,int pageSize) throws SQLException;
	//批量删除
	int deleteByIds(List<Integer> ids) throws SQLException;
	//根据用户id查询
	List<Order> selectByUserId(int userId,int page,int pageSize)throws SQLException; 
	//根据购物车id查询
	Order selectByCartId(int cartId) throws SQLException;
	//修改订单状态
	int updateOrderStatus(int orderId,int status) throws SQLException;
}
